home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.19981211-19990422 / 000000_news@newsmaster….columbia.edu _Fri Dec 11 22:40:37 1998.msg next >
Internet Message Format  |  2020-01-01  |  2KB

  1. Return-Path: <news@newsmaster.cc.columbia.edu>
  2. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.35.30])
  3.     by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id WAA29668
  4.     for <kermit.misc@watsun.cc.columbia.edu>; Fri, 11 Dec 1998 22:40:36 -0500 (EST)
  5. Received: (from news@localhost)
  6.     by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id WAA11677
  7.     for kermit.misc@watsun; Fri, 11 Dec 1998 22:40:36 -0500 (EST)
  8. Path: news.columbia.edu!panix!cam-news-hub1.bbnplanet.com!news.gtei.net!news.mathworks.com!nntprelay.mathworks.com!outfeed1.news.cais.net!vnetnews.value.net!not-for-mail
  9. From: Mark Sapiro <msapiro@value.net>
  10. Newsgroups: comp.protocols.kermit.misc
  11. Subject: Re: help with scripting
  12. Date: Fri, 11 Dec 1998 19:37:54 -0800
  13. Organization: Not Very Much
  14. Lines: 25
  15. Message-ID: <3671E512.4303@value.net>
  16. References: <Pine.SGI.4.05.9812101557050.64066-100000@poros.cis.jhu.edu> <74rdgh$l7s$1@apakabar.cc.columbia.edu>
  17. Reply-To: Mark Sapiro <msapiro@value.net>
  18. NNTP-Posting-Host: oak123.value.net
  19. Mime-Version: 1.0
  20. Content-Type: text/plain; charset=us-ascii
  21. Content-Transfer-Encoding: 7bit
  22. X-Mailer: Mozilla 3.01 (Win95; I)
  23. Xref: news.columbia.edu comp.protocols.kermit.misc:9632
  24.  
  25. Frank da Cruz wrote:
  26. > ...
  27. > A better consruction for this might be:
  28. >   undef \%n
  29. >   switch \%l {
  30. >     :p, def \%n 410-516-2926
  31. >     :m, def \%n 410-516-2927
  32. >     :l, def \%n 410-516-2928
  33. >     :default, stop 1 "\%l": Invalid response
  34. >   }
  35.  
  36. Shouldn't there be 'break' statements in the above.
  37. i.e.
  38.    undef \%n
  39.    switch \%l {
  40.      :p, def \%n 410-516-2926, break
  41.      :m, def \%n 410-516-2927, break
  42.      :l, def \%n 410-516-2928, break
  43.      :default, stop 1 "\%l": Invalid response
  44.    }
  45.  
  46. -- 
  47. Mark Sapiro <msapiro@value.net>       The highway is for gamblers,
  48. San Francisco Bay Area, California    better use your sense - B. Dylan